﻿using Domain.Entity.System_dictionary;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_dictionary
{
    public class Sys_dict_typeConfiger : IEntityTypeConfiguration<Sys_dict_type>
    {
        public void Configure(EntityTypeBuilder<Sys_dict_type> builder)
        {
            builder.ToTable(nameof(Sys_dict_type));
            builder.HasKey(e => e.Dict_id);
            builder.Property(e => e.Dict_id).HasColumnType("bigint");
            builder.Property(e => e.Dict_name).HasColumnType("varchar(100)");
            builder.Property(e => e.Dict_type).HasColumnType("varchar(100)");
            builder.Property(e => e.Status).HasColumnType("int").HasComment("0 正常/1 停用");
            builder.Property(e => e.Create_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_time).HasColumnType("DateTime");
            builder.Property(e => e.Update_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Update_time).HasColumnType("DateTime");
            builder.Property(e => e.Remark).HasColumnType("varchar(500)");
        }
    }
}
